﻿<div class="main">
    <table border=0 cellpadding=0 cellspacing=0 class="tb-head">
        <tr>
            <td>
                <div class="btn-group btn-group-sm">
                    <button type="button" class="btn btn-default btn-sm ui-selectInvert">反选</button>
                    <button type="button" class="btn btn-default btn-sm ui-deleteMultiple" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData',confirmMsg:'确定移除吗?',successMsg:'移除成功!'">移除</button>
                </div>
            </td>
            <td align="right">
                <div class=" form-inline form-group-sm">
                    <select id="orderBy" class="ui-queryString form-control ui-queryString-search">
                        <option value="">排序方式</option>
                        <option value="thedate desc">按发布日期↓</option>
                        <option value="thedate asc">按发布日期↑</option>
                    </select>
                    <input type="text" id="title" name="title"  placeholder="搜索关键词" class="form-control ui-keyword ui-queryString">
                    <button type="button" class="btn btn-default btn-sm ui-queryString-search">确定</button>
                </div>
            </td>
        </tr>
    </table>

    <table border=0 cellpadding=0 cellspacing=0 class="table table-bordered form-inline form-group-sm" id="tb_list">
        <thead>
            <tr>
                <td align="center" style="width:40px"><input type="checkbox" title="选择" class="ui-selectInvert" data-custom-params="isReverse:false"></td>
                <td align="center">标题</td>
                <td align="center">发布时间</td>
                <td align="center">操作</td>
            </tr>
        </thead>
        <tr class="item list-template-item" id="item_{_number}">
            <td align="center" style="width:40px"><input type="checkbox" class="checked-item" value="{_number}"></td>
            <td align="left">{Title} <span class="glyphicon glyphicon-eye-open ui-infoPreview" onclick="Preview('@ViewBag.Table','{TableDataId}')" title="预览"></span></td>
            <td align="center">{Thedate}</td>
            <td align="center">
                <input type="hidden" name="tagId" value="{TagId}" />
                <input type="hidden" name="tableId" value="{TableId}" />
                <input type="hidden" name="tableDataId" value="{TableDataId}" />
                <div class="btn-group btn-group-sm">
                    <button type="button" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData',confirmMsg:'确定移除吗?',successMsg:'移除成功!'" class="btn btn-default btn-sm ui-deleteSingle">移除</button>
                </div>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    function LoadData() {
        $("#tb_list").ListBind({ url: "@Url.ActionUrl("PageListData")?tagid=@ViewBag.TagId&tableId=@ViewBag.TableId", callBack: "LoadedInit" });
    }
    LoadData();
</script>
